package com.ts.api.module.common.controller;

import com.gitee.apanlh.web.model.vo.ResultVO;
import com.ts.api.module.common.entity.vo.RespContactBusinessVO;
import com.ts.api.module.common.entity.vo.RespContactCustomerServiceVO;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *  额外信息控制层
 *
 *  @author Pan
 */
@RestController
@RequestMapping("/common/more")
public class MoreController {

    /**
     *  联系客服
     */
    @GetMapping("/contact/customerService")
    public ResultVO<Object> contactCustomerService() {
        RespContactCustomerServiceVO respContactCustomerService = new RespContactCustomerServiceVO();
        respContactCustomerService.setCustomerServicePhone("400-006-4899");
        return ResultVO.suc(respContactCustomerService);
    }

    /**
     *  联系商务
     */
    @GetMapping("/contact/business")
    public ResultVO<Object> contactBusiness() {
        RespContactBusinessVO respContactBusinessVO = new RespContactBusinessVO();
        respContactBusinessVO.setContactName("e时贷商务");
        respContactBusinessVO.setContactEmail("yscatbd@163.com");
        respContactBusinessVO.setQrLink("https://img1.baidu.com/it/u=373856011,3634400901&fm=253&fmt=auto&app=138&f=JPEG?w=128&h=128");
        return ResultVO.suc(respContactBusinessVO);
    }

}
